package net.lainiao.control;

import net.lainiao.model.Admin;
import net.lainiao.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2016/10/27.
 */
@RestController
@RequestMapping("/rest")
public class RestControl {
    @Autowired
    public AdminService adminService;

    @RequestMapping("/index")
    public Admin index(){
        return adminService.getAdminById(1);
    }
}
